package org.gruposp2p.openid.jms;

import javax.jms.ExceptionListener;
import javax.jms.JMSException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class JmsExceptionListener implements ExceptionListener {

    private static Logger logger =
        LoggerFactory.getLogger(JmsExceptionListener.class);

    public void onException( final JMSException e ) {
        logger.error(e.getMessage(), e);
    }

}
